package com.bruce.demo2.patterns.demo3.behavioral.demo13.template;

/**
 * @PROJECT_NAME: design_patterns
 * @DESCRIPTION: 具体实现类：抄包菜类
 * @AUTHOR: CNBruceLee
 * @DATE: 2021/8/25 6:53
 */
public class concreateClassBaoCai extends AbstractClass {
    public void pourVegetable() {
        System.out.println("下锅的蔬菜是包菜");
    }

    public void pourSauce() {
        System.out.println("下锅的酱料是辣椒");
    }

    /**
     * 爆炒包菜时油温在200℃
     *
     * @return
     */
    protected boolean isSuitableTemp() {
        if (getOilTemp() > 200) {
            return true;
        } else {
            return false;
        }
    }
}
